﻿<%@ Control Language="C#" EnableViewStatE="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<style type="text/css">
#ctl00_MainerRegion_ZS_BCFAControl___GridList_Div1
{
	border-collapse: collapse;
	border: 1px solid #74a4c0;
	background-color: #FFFFFF;	
	text-align:center;
	color:#a30101;
}
</style>
<script type="text/javascript">
    function select_project(type) {
        var url = 'ZS_SelectProject.aspx?TYPE=' + type + '&rdm=' + Math.random();
        var feature = "dialogWidth:" + 710 + "px;dialogHeight:" + 530 + "px;scroll:yes;status:no;help:no;center:1";

        var project_info = window.showModalDialog(url, '', feature);

        if (project_info != undefined && project_info.length > 1) {
            if (type == "xzxmzj") {
                document.getElementById('<%=LXH.ClientID %>').value = project_info[1];
                document.getElementById('<%=txt征收部门.ClientID %>').value = project_info[2];
                document.getElementById('<%=txt征收实施单位.ClientID %>').value = project_info[3];
                document.getElementById('<%=txtPNID.ClientID %>').value = project_info[0];
            }
            if (type == "khyh") {
                document.getElementById('<%=txt开户银行.ClientID %>').value = project_info[1];
                document.getElementById('<%=YHID.ClientID %>').value = project_info[0];
            }
            
        }
    }
    function checkNull() {
        var t1 = document.getElementById('<%=LXH.ClientID %>').value;
        var t2 = document.getElementById('<%=txt开户银行.ClientID %>').value;
        var t3 = document.getElementById('<%=txt银行账号.ClientID %>').value;
        var msg="";
        if(t1==""){msg+="立项号";}
        if(t2==""){msg+=" 开户银行";}
        if(t3==""){msg+=" 银行账号";}
        if(msg!=""){msg+="不能为空，请进行选择或填写！";}
        if(msg==""){return true;}else{
            alert(msg);
            return false;
        }
    }
    function ckMoney(obj){
        var ctrlTemp = document.getElementById(obj);
        if (ctrlTemp != null) {
            if(isNaN(ctrlTemp.value)) {
                alert("不是一个有效的数字，请重新输入 ！");
                ctrlTemp.value='';
            }
        }
    }
    window.onload=function aa(){
        var tt=document.getElementById('<%=txtPNID.ClientID %>').value;
        if(tt!=null&&tt!=""){document.getElementById("lxhxz").style.display='none';}
    };
</script> 
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
        margin-top: 1px">
        <tr>
            <td valign="middle" height="30">
                <font id="Font1" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left; color: black;text-indent:1em;" runat="server">
                    征收补偿款基本情况 </font>
            </td>
        </tr>
    </table>
<table border='1' cellpadding='0' cellspacing='0' id="compensationfundestimate" style='border-collapse: collapse;
            table-layout: fixed; width: 99%; text-align: center' class="window_tab_list">
            <tr>
                    <th colspan="4" style="text-align: center; line-height: 20px;">
                        征收补偿款基本情况</th>
                </tr>
                <tr>
                    <td>
                        立项号
                    </td>
                    <td style="text-align: left; width: 324px;">
                        <asp:TextBox ID="LXH" runat="server" onfocus="this.blur()"></asp:TextBox>
                        <input type="button" id="lxhxz" value="选择" onclick="select_project('xzxmzj');"   />
                    </td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td>征收部门</td>
                    <td style="text-align: left; width: 324px;">
                        <asp:TextBox ID="txt征收部门" runat="server" Width="235px" onfocus="this.blur()"></asp:TextBox></td>
                    <td>征收实施单位</td>
                    <td style="text-align: left; width: 324px;">
                        <asp:TextBox ID="txt征收实施单位" runat="server" Width="235px" onfocus="this.blur()" ></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        开户银行
                    </td>
                    <td style="text-align: left; width: 324px;">
                        <asp:TextBox ID="txt开户银行" runat="server" onfocus="this.blur()"></asp:TextBox>
                        <input type="button" value="选择" onclick="select_project('khyh');" />
                    </td>
                    <td>
                        银行账号
                    </td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txt银行账号" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        评估总补偿款(元)
                    </td>
                    <td style="text-align: left; width: 324px;">
                        <asp:TextBox ID="txt评估总补偿款" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        到账金额(元)
                    </td>
                    <td style="text-align: left; width: 324px;">
                        <asp:TextBox ID="txt到账金额" runat="server" onfocus="this.blur()"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        划转金额(元)
                    </td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txt划转金额" runat="server" onfocus="this.blur()"></asp:TextBox>
                    </td>
                    <td>
                        余额(元)
                    </td>
                    <td style="text-align: left; width: 324px;">
                        <asp:TextBox ID="txt余额" runat="server" onfocus="this.blur()"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        时间
                    </td>
                    <td style="text-align: left;">
                        <CBW:MPCalendar ID="txt时间" runat="server" />
                    </td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td>
                        备注
                    </td>
                    <td colspan="3" style="text-align: left;">
                        <asp:TextBox ID="txt备注" runat="server" TextMode="MultiLine" Height="70px" Width="90%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>消除异常说明</td>
                    <td colspan="3" style="text-align:left;">
                    <asp:TextBox ID="txt说明" runat="server" TextMode="MultiLine" Height="70px" Width="90%" ></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" align="center">
                        <asp:Button ID="btn_Insert" runat="server" Text="保存" OnClientClick="return checkNull();" />
                    &nbsp;&nbsp;
                        <input id="Button1" type="button" value="返回" onclick="javascript:window.location.href=('ZJ_BCKJB.aspx');" />
                    </td>
                </tr>
        </table>
        <div style="display:none;">
            <asp:TextBox ID="txtPNID" runat="server"></asp:TextBox>
            <asp:TextBox ID="YHID" runat="server"></asp:TextBox>
            <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
        </div>